<template>
  <section class="base-info">
    <section class="close" @click="close">
      <img style="width: 100%;height: 100%;" src="../../../assets/image/base/close.png">
    </section>

    <section class="title">
      光大餐厨垃圾处理
    </section>
    <section style="margin-bottom: .1rem">
      <section style="width: 95%;margin: 0 auto;">
        <section style="width: 100%;height: .4rem;line-height: .4rem;font-size: .14rem">
          <table style="width: 100%;">
            <tr>
              <th width="15%">日期</th>
              <th width="10%">发电量</th>
              <th width="15%">餐厨废弃物进厂量</th>
              <th width="10%">废弃油脂</th>
              <th width="10%">污泥量</th>
              <th width="10%">沼液产生量</th>
              <th width="10%">工艺油出油量</th>
              <th width="10%">工艺油出油率</th>
              <th width="10%">废渣产生量</th>
            </tr>
          </table>
        </section>

        <section class="hw-table-content" style="width: 100%;height: 2.5rem;overflow: hidden overlay;">
          <table style="width: 100%;">
            <tr v-for="item in datas" v-if="datas.length > 0">
              <td width="15%">{{item.rq}}</td>
              <td width="10%">{{item.fdl}}</td>
              <td width="15%">{{item.jcl}}</td>
              <td width="10%">{{item.fqyz}}</td>
              <td width="10%">{{item.wnl}}</td>
              <td width="10%">{{item.cycsl}}</td>
              <td width="10%">{{item.gyycyl}}</td>
              <td width="10%">{{item.gyycylv}}</td>
              <td width="10%">{{item.fzcsl}}</td>
            </tr>
          </table>
        </section>
      </section>
    </section>
  </section>
</template>

<script>
  import kshSanitationDataApi from '../../../api/kshSanitationData'

  export default {
    name: 'BaseInfo',
    data() {
      return {
        datas: []
      }
    },
    mounted() {
      this.selectKitchenWasteList()
    },
    methods: {
      close() {
        this.$emit('close')
      },
      selectKitchenWasteList() {
        kshSanitationDataApi.selectKitchenWasteList()
          .then(res => {
            this.datas = res.data
          })
          .catch(() => {

          })
      }
    }
  }
</script>

<style scoped>
  @import '~@/assets/style/hw.css';

  .base-info {
    width: 100%;
    height: 100%;
    position: relative;
  }
  .title {
    height: .3rem;
    width: 92%;
    margin: 0 auto;
    text-align: left;
    padding-top: .18rem;
    font-size:16px;
    font-family:Microsoft YaHei;
    font-weight:400;
    color:rgba(255,255,255,1);
    border-bottom: .01rem solid #00FFFFBB;
  }
  .row {
    display: flex;
    text-align: left;
    width: 86%;
    margin: 0 auto;
    padding: .05rem 0 0 0;
    line-height: .2rem;font-size: .12rem;
  }
  .label {
    width: 25%;
    /*height: .2rem;*/
    color:#A4A4A4;text-align:justify; text-align-last: justify;
  }
  .mh {
    width: 5%;
    /*height: .2rem;*/
    color:#A4A4A4;
  }
  .value {
    width: 70%;
    /*height: .2rem;*/
  }
  .yw-label {
    font-size: .12rem;
    font-family:Microsoft YaHei;
    font-weight:400;
    color:rgba(254,254,254,0.4);
    padding-top: .05rem;
  }
  .yw-value {
    font-size:16px;
    font-family:Microsoft YaHei;
    font-weight:bold;
    color:rgba(255,255,255,1);
    padding-top: .05rem;
  }
  .close {
    width: .17rem;
    height: .17rem;
    cursor: pointer;
    position: absolute;
    top: .22rem;
    right: .22rem;
  }
</style>
